package acationtiktokcasemymongo

const (
	ActionSinglesDayScoreChangeTypeAdd     = 1 //增加
	ActionSinglesDayScoreChangeTypeReduced = 2 //减少

	// 用户双十一活动积分来源
	ActionSinglesDayScoreSourceHouseGift = 1 //刷礼物获得
)

type ActionSinglesDayScoreCases struct {
}

var ActionSinglesDayScoreCasesObject ActionSinglesDayScoreCases

func (e ActionSinglesDayScoreCases) SourceType() []int {
	return []int{
		ActionSinglesDayScoreSourceHouseGift,
	}
}

func (e ActionSinglesDayScoreCases) SourceMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.SourceType() {
		m[s] = e.SourceString(s)
	}
	return m
}

func (e ActionSinglesDayScoreCases) SourceString(tag int) string {
	switch tag {
	case ActionSinglesDayScoreSourceHouseGift:
		return "刷礼物获得"
	default:
		return "其他"
	}
}

func (e ActionSinglesDayScoreCases) ChangeType() []int {
	return []int{
		ActionSinglesDayScoreChangeTypeAdd,
		ActionSinglesDayScoreChangeTypeReduced,
	}
}

func (e ActionSinglesDayScoreCases) ChangeTypeMap() map[int]string {
	m := make(map[int]string)
	for _, s := range e.ChangeType() {
		m[s] = e.ChangeTypeString(s)
	}
	return m
}

func (e ActionSinglesDayScoreCases) ChangeTypeString(tag int) string {
	switch tag {
	case ActionSinglesDayScoreChangeTypeAdd:
		return "增加"
	case ActionSinglesDayScoreChangeTypeReduced:
		return "减少"
	default:
		return "其他"
	}
}
